import 'package:flutter/material.dart';
import 'package:flutter6/widgets/playing.dart';
import '../../util/screen_util.dart';

class Header extends StatelessWidget{
  const Header({super.key});
  @override
  Widget build(BuildContext context) {
    final screen = Screen(context);
    return Container(
      height: screen.calc(72),
      padding: EdgeInsets.only(left: screen.calc(24), right: screen.calc(24)),
      child: Row(
        children: [
          GestureDetector(
            child: Container(
              child: Image.asset(
                'assets/icon-left-arrow.png',
                width: screen.calc(40),
                height: screen.calc(40),
              ),
            ),
            onTap: (){
              Navigator.pop(context);
            },
          ),
          Expanded(
            child: Container(
              child: Center(
                child: Text("歌单广场",
                style: TextStyle(
                  fontSize: screen.calc(34),
                  fontWeight: FontWeight.w700
                ),),
              )
            ),
          ),
          Container(
            margin: EdgeInsets.only(left: screen.calc(32)),
            child: Playing(),
          )
        ],
      ),
    );
  }

}